package com.command;

public class RemoteControlTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		SimpleRemoteControl remote = new SimpleRemoteControl();

		Light light = new Light();
		LightOnCommand lightOn = new LightOnCommand(light);

		GerageDoor gerageDoor = new GerageDoor();
		GerageDoorOpenCommand genareDoorOpen = new GerageDoorOpenCommand(
				gerageDoor);

		remote.setCommand(lightOn);
		remote.buttonWasPressed();

		remote.setCommand(genareDoorOpen);
		remote.buttonWasPressed();
	}
}
